package com.zhangtai.modules.entity.score;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
	

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-10-14 15:03:55
 */
@Data
@TableName("tb_score_rater")
public class ScoreRaterEntity implements Serializable {
	private static final long serialVersionUID = 1L;

			/**
		 * 评分id
		 */
				@TableId
		@JsonDeserialize(using = LongJsonDeserializer.class)
		@JsonSerialize(using = LongJsonSerializer.class)
			private Long id;
			/**
		 * 360评分id
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long scoreId;
			/**
		 * 评分人员工id
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long oid;
			/**
		 * 评分人员工姓名
		 */
			private String name;

	/**
	 * 部门id
	 */
	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
	private Long unitId;
			/**
		 * 状态 0 进行中  1 成功  2 终止
		 */
			private Integer status;
			/**
		 * 评分权重
		 */
			private BigDecimal weights;
			/**
		 * 评分关系   0 上级  1 同级 2 下级  3 自评 
		 */
			private Integer type;
			/**
		 * 评分
		 */
			private BigDecimal raterScore;
			/**
		 * 评分数组
		 */
			private String scoreArray;
			/**
		 * 创建时间
		 */
			private Date createTime;
			/**
		 * 0:未删除，1：已删除
		 */
			private Integer isDelete;
			/**
		 * 创建人
		 */
			private String createName;
			/**
		 * 创建人 code
		 */
			private String createCode;
			/**
		 * 评分时间
		 */
			private Date scoreTime;
	
}
